home *** CD-ROM | disk | FTP | other *** search
/ The Fatted Calf / The Fatted Calf.iso / Applications / Conversion / Convert_PICT / Testing / hex_tests / pat=set2=oldcolor.hex < prev    next >
Text File  |  1992-12-05  |  3KB  |  90 lines

  1. % header
  2. 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
  3. % end of app-specific header
  4. 00FF 0000 0000 00FF 00FF    % pict size (bogus) and top left bottom right
  5. 11 01                        % verson
  6. 01 000A 0000 0000 00FF 00FF    % Clip region.  Added to keep Mac tester happy.
  7. 30 0000 0000 00FF 00FF        % draw bounding rect
  8.  
  9. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  10. %
  11. %    This test set seeks to demonstrate that more 'special' opcodes
  12. %    for bitmaps, polygons, regions, and thickly framed shapes work as
  13. %    they should with patterns.
  14. %    This test confirms that they work with B&W patterns and pict 1 colors
  15. %
  16. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  17.  
  18. 02 0008 142A 552A 1408        % back pat (grey diamonds)
  19. 09 7789 8f8f 7798 f8f8            % pen pat (the black dimpled circles one)
  20. 0A 8244 3944 8201 0101        % fill pat
  21.  
  22. %
  23. %    Use old-style colors
  24. %
  25. 0F    0000 00D1    % background color (red)
  26. 0E    0000 0149    %  foreground color (cyan)
  27.  
  28.  
  29. % paint a region
  30. 81 0028 0090 0010 00F0 0070
  31.     0090 0040 0050 7FFF
  32.     00C0 0010 0070 7FFF
  33.     00F0 0010 0040   0050 0070 7FFF
  34.     7FFF
  35.  
  36.  
  37. % fill a hexagonal polygon
  38. 74 0026 0080 0080 00F0 00F0
  39.     0080 00A0
  40.     0080 00D0
  41.     00C0 00F0
  42.     00F0 00D0
  43.     00F0 00A0
  44.     00C0 0080
  45.     0080 00A0
  46.  
  47.  
  48. % set a thick pen size
  49. 07 0010 0008
  50.  
  51. % thickly Frame a rectangle
  52. 30 0010 0080 0050 00D0
  53.  
  54.  
  55. % Include a bitmap, to confirm it is not affected
  56.  
  57. 90
  58. 0004            % rowbytes
  59. 0000 0050 0018 0070    % bounds  (t l b r)
  60. 0000 0050 0018 0069    % source rect
  61. 0010 0020 0028 0039    % dest rect
  62. 0001        % mode
  63. 00 7F 00 00    % bit data (unpacked)
  64. 03 80 E0 00
  65. 06 00 30 00
  66. 08 00 08 00
  67. 10 00 04 00
  68. 20 00 02 00
  69. 60 00 03 00
  70. 40 00 01 00
  71. 40 00 81 00
  72. 80 03 80 80
  73. 83 00 00 80
  74. 80 00 00 80
  75. 80 00 00 80
  76. 80 00 30 80
  77. 80 00 20 80
  78. 40 00 21 00
  79. 40 00 C1 00
  80. 63 07 83 00
  81. 20 F8 02 00
  82. 10 00 04 00
  83. 08 00 08 00
  84. 06 00 30 00
  85. 03 80 E0 00
  86. 00 7F 00 00
  87.  
  88.  
  89. FF    % end
  90.